package com.zhang.Decorator.example;

/**
 * @author ElloeStudy(Sifa Zhang)
 * @create 2022-03-09 23:15
 * To: 真常应物，真常得性，常清常静，常清静矣
 */
public abstract class Decorator extends SchoolReport{
    // 首先需要知道是哪个成绩单
    private SchoolReport sr;
    // 构造函数，传递四年级的成绩单过来
    public Decorator(SchoolReport sr){
        this.sr = sr;
    }
    //成绩单还是需要被看到的

    @Override
    public void report() {
        this.sr.report();
    }

    @Override
    public void sign(String name) {
        this.sr.sign(name);
    }
}
